package com.yl.users.mapper

import com.baomidou.mybatisplus.core.mapper.BaseMapper
import com.yl.users.entity.CompanyTableField
import com.yl.users.entity.SysTableFieldPerm
import org.apache.ibatis.annotations.Mapper
import org.apache.ibatis.annotations.Param

@Mapper
interface CompanyTableFieldMapper : BaseMapper<CompanyTableField> {

	/**
	 * 获取某个公司所有的字段权限id
	 */
	fun selectCompanyFieldId(@Param("companyId")companyId:Long):List<Long>

	/**
	 * 查询公司所有的字段权限
	 */
	fun selectCompanyFieldTree(@Param("companyId")companyId:Long):List<SysTableFieldPerm>
}